package com.yigang.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.yigang.dao.AlipayDao;
import com.yigang.entity.Orderdetails;
import com.yigang.entity.PayMent;
import com.yigang.service.AlipayService;
@Service
@Transactional
public class AlipayServiceImpl implements AlipayService{
@Autowired
	AlipayDao aliPayDao;
	
	@Override
	public List<Map<String, Object>> alipay() {
		// TODO Auto-generated method stub
		return aliPayDao.alipay();
	}

	@Override
	public List<Map<String, Object>> alipay1() {
		// TODO Auto-generated method stub
		return aliPayDao.alipay1();
	}

	@Override
	public List<Map<String, Object>> alipay2() {
		// TODO Auto-generated method stub
		return aliPayDao.alipay2();
	}

	@Override
	public int addPay(PayMent payMent) {
		// TODO Auto-generated method stub
		return aliPayDao.insert(payMent);
	}

	@Override
	public List<Map<String, Object>> alipay3() {
		// TODO Auto-generated method stub
		return aliPayDao.alipay3();
	}

	@Override
	public List<Map<String, Object>> alipay4() {
		// TODO Auto-generated method stub
		return aliPayDao.alipay4();
	}

	@Override
	public List<Map<String, Object>> alipay5() {
		// TODO Auto-generated method stub
		return aliPayDao.alipay5();
	}

	@Override
	public int addPay(Orderdetails order) {
		// TODO Auto-generated method stub
		return aliPayDao.insert(order) ;
	}

	@Override
	public List<Map<String, Object>> alipayselect() {
		// TODO Auto-generated method stub
		return aliPayDao.alipayselect();
	}

}
